import re
print(re.match(r"^(\d+)(0*)$","8848000").groups()) #正则默认贪婪
print(re.match(r"^(\d+?)(0*)$","8848000").groups())#非贪婪